<template>
  <div class="package-step">
    <el-row>
      <el-col :span="18" style="min-width:632px;">
        <el-steps :active="active" finish-status="success" simple>
          <el-step title="1.基本信息"/>
          <el-step title="2.课程管理"/>
          <el-step title="3.课程包管理"/>
        </el-steps>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { pushMessageBus } from './eventbus'
export default {
  props: {
    stepNumber: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
    }
  },
  computed: {
    active() {
      return this.stepNumber
    }
  },
  methods: {
    addStageClick() {
      pushMessageBus.$emit('fromStep-openAddStage')
    },
    addClassClick() {
      pushMessageBus.$emit('fromStep-openAddClass')
    }
  }
}
</script>

<style lang="scss" scoped>
.package-step {
  margin-top: 16px;
  .el-row {
    .el-col {
      text-align: center;
    }
  }
}
</style>
